﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("categoryService", function (httpService) {
        var methods = {
            get: function (params) {
                return httpService.get("/category/get", params);
            },
            gets: function (params) {
                return httpService.get("/category/gets", params);
            },
            save: function (params) {
                return httpService.upload("/category/save", params);
            },
            "delete": function (id) {
                return httpService.delete("/category/delete/" + id);
            }
        }
        return methods;
    });
});